import { createApp } from 'vue'

import App from './App.vue'

import router from '@router/index'



import './style.css'

//状态管理
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
const app = createApp(App)
const store = createPinia()
store.use(piniaPluginPersist)

// Element UI 样式包
import 'element-plus/theme-chalk/index.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


app.use(ElementPlus)
app.use(store)
app.use(router)



app.mount('#app')
